package com.inforich.disposal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.inforich.common.mybatis.Location;
import com.inforich.common.mybatis.LocationHandler;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.inforich.common.core.domain.BaseParamEntity;
import com.inforich.common.annotation.Excel;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.inforich.common.core.domain.BaseEntity;

/**
 * 处置地对象 br_disposal_land
 *
 * @author hjm
 * @date 2022-10-25
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@TableName("br_disposal_land")
public class DisposalLand extends BaseParamEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 主键
   */
  @TableId(type = IdType.AUTO)
  private Long id;

  /**
   * 投产日期
   */
  @JsonFormat(pattern = "yyyy-MM-dd")
  @Excel(name = "投产日期", width = 30, dateFormat = "yyyy-MM-dd")
  private Date putProductionData;

  /**
   * 名称
   */
  @Excel(name = "资源利用化企业")
  @Size(max = 255)
  @TableField("name_")
  private String name;

  /**
   * 启用
   */
  @Excel(name = "启用", dictType = "sys_valid")
  private Integer valid;

  /**
   * 资源利用化企业地址
   */
  @Excel(name = "资源利用化企业地址")
  @Size(max = 255)
  private String address;

  /**
   * 联系人姓名
   */
  @Excel(name = "联系人姓名")
  @Size(max = 50)
  private String contactName;

  /**
   * 手机号
   */
  @Excel(name = "手机号")
  @Size(min = 11, max = 11)
  private String contactPhone;

  /**
   * 处置能力
   */
  @Excel(name = "处置能力")
  @Size(max = 255)
  private String disposalAbility;

  @Excel(name = "备注")
  @Size(max = 255)
  private String remark;

  /**
   * 定位
   */
  @TableField(typeHandler = LocationHandler.class)
  private Location location;

  /**
   * 创建时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  private Date createdDate;

  /**
   * 修改时间
   */
  private Date modifiedDate;

  /**
   * 最后数据上报时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @Excel(name = "最后数据上报时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  private Date finalDataReportTime;

  /**
   * 图片
   */
  @Size(max = 1024)
  private String images;

  @Excel(name = "地磅编号")
  private String weighbridgeNo;
}